'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const collection = db.collection('account-list')
	const {
		_id,
		id,
		password,
		monthFirthDate,
		userName
	} = event
	const res = await collection.where({
		_id: _id
	}).update({
		id,
		password,
		monthFirthDate,
		userName
	})
	return res
};
